<?php
	require_once('auth.php');

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>::.::.::  APPMA  ||  Delete Pic  ::.::.::</TITLE>

<script language="javascript">
location.replace("index.php")

</script>

</HEAD>
<BODY>

	  
<?php
$file=$_GET['file'];

$con = mysql_connect("localhost","appma" ,"database");
	mysql_select_db("162_appma", $con);
 $sql="DELETE FROM files WHERE filename = '$file'";
 		 $result=mysql_query($sql);
	
unlink("uploader/files/". $file ."");
?>
</BODY>
</HTML>
